<template>
  <div class="form-setting-panel">
    <!-- start 标题 -->
    <form-title-setting 
      :field="field" 
      :setting="{name: $t('common.form.type.textarea')}" 
      :disabled="true"
      :form-title-max-length='maxLength'>
    </form-title-setting>
    <!-- end 标题 -->
  </div>
</template>
  
<script>
import SettingMixin from '@src/component/form/mixin/setting';
import { settingProps } from '@src/component/form/components/props';
  
import { MAX_SELECT_USER_COUNT } from '@src/model/const/Number.ts';
/* enum */
import TableNameEnum from '@model/enum/TableNameEnum.ts';
  
export default {
  name: 'FaultLibraryRemarkSetting',
  mixins: [SettingMixin],
  props: settingProps,
  computed: {
    maxLength() {
      return MAX_SELECT_USER_COUNT;
    },
  },
  methods: {
    updateForDom(event) {
      let el = event.target;
      let prop = el.dataset.prop;
      let value = el.value;
  
      this.update(value, prop);
    },
    update(value, prop, isSetting = false) {
      this.$emit('input', { value, prop, isSetting });
    },
  },
};
</script>
  